package com.example.hsh.homefragment.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;

import com.example.hsh.homefragment.R;
import com.example.hsh.homefragment.base.BaseHolder;

/**
 * Created by HSH on 2016/12/13.
 */

public class TestAdapter extends BaseAdapter<String> {

    public TestAdapter(Context context) {
        super(context);
    }

    @Override
    public int getItemLayoutRes() {
        return R.layout.layout_of_test_item;
    }

    @Override
    public void onBindView(BaseHolder holder, String bean, int position) {
        TextView test = holder.getViewById(R.id.tv_item);
        test.setText(bean);
    }
}
